package com.lvhx.sofa3.server.impl;

import com.alibaba.dubbo.rpc.RpcContext;
import com.lvhx.sofa3.server.facade.Sofa3HelloService;
import com.lvhx.sofa3.server.facade.Test1Reponse;
import com.lvhx.sofa3.server.facade.Test1Request;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class Sofa3HelloServiceImpl implements Sofa3HelloService {
    @Override
    public Test1Reponse test1(Test1Request request) {

        Test1Reponse reponse = new Test1Reponse();
        reponse.setResponseName(request.getRequestName());
//        int i = 1/0;
        log.info("====="+RpcContext.getContext().getAttachment("headerKey"));
        return reponse;
    }
}
